package com.hnust.service.impl;

import com.hnust.api.PreviewPaperApi;
import com.hnust.domain.ChoiceQuestion;
import com.hnust.domain.PaperInfoPreview;
import com.hnust.domain.Result;
import com.hnust.service.PreviewPaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
@Service
public class PreviewPaperServiceImpl implements PreviewPaperService {
    @Autowired
    PreviewPaperApi previewPaperApi;

    @Override
    public Result<List<PaperInfoPreview>> getPaperInfo(String papId) {
        return previewPaperApi.getPaperInfo(papId);
    }

    @Override
    public Result<List<ChoiceQuestion>> getChoiceQuestions(String papId) {
        return previewPaperApi.getChoiceQuestions(papId);
    }

    @Override
    public Result<List<String>> getJudgQuestions(String papId) {
        return previewPaperApi.getJudgQuestions(papId);
    }

    @Override
    public Result<List<String>> getFillQuestions(String papId) {
        return previewPaperApi.getFillQuestions(papId);
    }

    @Override
    public Result<List<String>> getShortAnswerQuestions(String papId) {
        return previewPaperApi.getShortAnswerQuestions(papId);
    }

    @Override
    public Result<List<String>> getChoiceQuesAns(String papId) {
        return previewPaperApi.getChoiceQuesAns(papId);
    }

    @Override
    public Result<List<String>> getJudgQuesAns(String papId) {
        return previewPaperApi.getJudgQuesAns(papId);
    }

    @Override
    public Result<List<String>> getFillQuesAns(String papId) {
        return previewPaperApi.getFillQuesAns(papId);
    }

    @Override
    public Result<List<String>> getShortQuesAns(String papId) {
        return previewPaperApi.getShortQuesAns(papId);
    }
}
